import request from '@/utils/request'

// 查询关注列表
export function listFollows(query) {
  return request({
    url: '/manage/follows/list',
    method: 'get',
    params: query
  })
}

// 查询关注详细
export function getFollows(followId) {
  return request({
    url: '/manage/follows/' + followId,
    method: 'get'
  })
}

// 新增关注
export function addFollows(data) {
  return request({
    url: '/manage/follows',
    method: 'post',
    data: data
  })
}

// 修改关注
export function updateFollows(data) {
  return request({
    url: '/manage/follows',
    method: 'put',
    data: data
  })
}

// 删除关注
export function delFollows(followId) {
  return request({
    url: '/manage/follows/' + followId,
    method: 'delete'
  })
}
